package com.yjy.util.custom;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CustomDateFormatValidator.class)
public @interface CustomDateFormat {
 
    String message() default "日期校验不合法";
 
    String format() default "yyyy-MM-dd";
 
    Class<?>[] groups() default {};
 
    Class<? extends Payload>[] payload() default {};
}